﻿@inherits BaseComponent

<div class="cl-plugin-item">
    <div class="wrapper">
        <div class="title">
            <div class="name">
                <span>@Item?.Name</span>
                @* <sup class="ant-badge-count ant-badge-count-sm">New</sup> *@
            </div>
            <AntTag Color="blue">@Item.Category</AntTag>
        </div>
        <div class="author">By <span>@Item.Author</span></div>
        <div class="summary">@Item.Summary</div>
        <div class="detail">
            @if (Item.Type == "免费")
            {
                <AntTag Color="green">免费</AntTag>
            }
            else
            {
                <AntTag Color="blue">@Item.Price</AntTag>
            }
            <a href="@Url.GetPluginUrl(Item.Id)">详情</a>
        </div>
    </div>
</div>

@code {
    [Parameter] public CmPlugin Item { get; set; }
}